package com.moweilin.folded_binding.components.buttons;

import javafx.scene.Node;
import javafx.scene.control.TitledPane;
import javafx.scene.control.ToolBar;
import javafx.scene.layout.VBox;

/**
 * Created by moweilin on 2017/2/5.
 */
public class PreviewPane extends TitledPane {
    public PreviewPane() {
        VBox vBox = new VBox();
        buildContent(vBox);
        setContent(vBox);
    }
    protected void buildContent(VBox parent){
        Node toolbar = buildToolbar();
        parent.getChildren().add(toolbar);
    }
    protected Node buildToolbar(){
        ToolBar toolBar = new ToolBar();
        toolBar.getItems().add(new PreviousButton());
        toolBar.getItems().add(new GotoField());
        toolBar.getItems().add(new NextButton());
        return toolBar;
    }
}
